This is going to be deprecated.
https://bugzilla.gnome.org/show_bug.cgi?id=644632
*
* Returns: the text for the entry. This must not be freed by the application
*/
-G_CONST_RETURN gchar *
+const gchar *
st_entry_get_text (StEntry *entry)
{
g_return_val_if_fail (ST_IS_ENTRY (entry), NULL);
* Returns: the current value of the hint property. This string is owned by the
* #StEntry and should not be freed or modified.
*/
-G_CONST_RETURN
-gchar *
+const gchar *
st_entry_get_hint_text (StEntry *entry)
{
g_return_val_if_fail (ST_IS_ENTRY (entry), NULL);
GType st_entry_get_type (void) G_GNUC_CONST;
StWidget * st_entry_new (const gchar *text);
-G_CONST_RETURN gchar *st_entry_get_text (StEntry *entry);
+const gchar * st_entry_get_text (StEntry *entry);
void st_entry_set_text (StEntry *entry,
const gchar *text);
ClutterActor* st_entry_get_clutter_text (StEntry *entry);
void st_entry_set_hint_text (StEntry *entry,
const gchar *text);
-G_CONST_RETURN gchar *st_entry_get_hint_text (StEntry *entry);
+const gchar * st_entry_get_hint_text (StEntry *entry);
void st_entry_set_primary_icon (StEntry *entry,
ClutterActor *icon);
*
* Returns: the text for the label. This must not be freed by the application
*/
-G_CONST_RETURN gchar *
+const gchar *
st_label_get_text (StLabel *label)
{
g_return_val_if_fail (ST_IS_LABEL (label), NULL);
GType st_label_get_type (void) G_GNUC_CONST;
-StWidget * st_label_new (const gchar *text);
-G_CONST_RETURN gchar *st_label_get_text (StLabel *label);
-void st_label_set_text (StLabel *label,
- const gchar *text);
-ClutterActor * st_label_get_clutter_text (StLabel *label);
+StWidget * st_label_new (const gchar *text);
+const gchar * st_label_get_text (StLabel *label);
+void st_label_set_text (StLabel *label,
+ const gchar *text);
+ClutterActor * st_label_get_clutter_text (StLabel *label);
G_END_DECLS
*
* Returns: the text for the tooltip. This must not be freed by the application
*/
-G_CONST_RETURN gchar *
+const gchar *
st_tooltip_get_label (StTooltip *tooltip)
{
g_return_val_if_fail (ST_IS_TOOLTIP (tooltip), NULL);
* Returns: the #ClutterGeometry, owned by the tooltip which must not be freed
* by the application.
*/
-G_CONST_RETURN ClutterGeometry*
+const ClutterGeometry*
st_tooltip_get_tip_area (StTooltip *tooltip)
{
g_return_val_if_fail (ST_IS_TOOLTIP (tooltip), NULL);
GType st_tooltip_get_type (void) G_GNUC_CONST;
-G_CONST_RETURN gchar *st_tooltip_get_label (StTooltip *tooltip);
-void st_tooltip_set_label (StTooltip *tooltip,
- const gchar *text);
+const gchar * st_tooltip_get_label (StTooltip *tooltip);
+void st_tooltip_set_label (StTooltip *tooltip,
+ const gchar *text);
-void st_tooltip_set_tip_area (StTooltip *tooltip,
- const ClutterGeometry *area);
-G_CONST_RETURN ClutterGeometry* st_tooltip_get_tip_area (StTooltip *tooltip);
+void st_tooltip_set_tip_area (StTooltip *tooltip,
+ const ClutterGeometry *area);
+const ClutterGeometry* st_tooltip_get_tip_area (StTooltip *tooltip);
G_END_DECLS
const gchar *pseudo_class);
void st_widget_remove_style_pseudo_class (StWidget *actor,
const gchar *pseudo_class);
-G_CONST_RETURN gchar *st_widget_get_style_pseudo_class (StWidget *actor);
+const gchar * st_widget_get_style_pseudo_class (StWidget *actor);
gboolean st_widget_has_style_pseudo_class (StWidget *actor,
const gchar *pseudo_class);
const gchar *style_class);
void st_widget_remove_style_class_name (StWidget *actor,
const gchar *style_class);
-G_CONST_RETURN gchar *st_widget_get_style_class_name (StWidget *actor);
+const gchar * st_widget_get_style_class_name (StWidget *actor);
gboolean st_widget_has_style_class_name (StWidget *actor,
const gchar *style_class);
void st_widget_set_style (StWidget *actor,
const gchar *style);
-G_CONST_RETURN gchar *st_widget_get_style (StWidget *actor);
+const gchar * st_widget_get_style (StWidget *actor);
void st_widget_set_theme (StWidget *actor,
StTheme *theme);
StTheme * st_widget_get_theme (StWidget *actor);